<template>
	<view>
		<view>
			<image src="/static/images/reportManage.png" class="heard-location-icon"></image>
		</view>
		<view class="cu-list grid" :class="'col-2'">
			<view class="cu-item" @tap="toPage(1);">
				<view :class="['cuIcon-text','text-red']"></view>
				<text>报事</text>
			</view>
			<view class="cu-item" @tap="toPage(2);">
				<view :class="['cuIcon-copy','text-red']"></view>
				<text>我的报事</text>
			</view>
			<view class="cu-item" @tap="toPage(3);">
				<view :class="['cuIcon-text','text-red']"></view>
				<text>重大事件</text>
			</view>
			<view class="cu-item" @tap="toPage(4);">
				<view :class="['cuIcon-copy','text-red']"></view>
				<text>安全事件</text>
			</view>
			<!-- <view class="cu-item" @click="toPage(3);">
				<view :class="['cuIcon-all','text-red']"></view>
				<text>他人报事</text>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				communityName: '',
				communityId: '',
			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {
			this.vc.onLoad(options);
		},

		/**
		 * 用户点击右上角分享
		 */
		onShareAppMessage: function() {},
		methods: {
			toPage: function(a) {
				if(a == 1){
					this.vc.navigateTo({
						url:`/pages/report/report`
					},true)
				}
				if(a == 2){
					this.vc.navigateTo({
						url:"/pages/myReport/myReport"
					},true)
				}
				if(a == 3){
					this.vc.navigateTo({
						url:`/pages/caseReport/caseReport`
					},true)
				}
				if(a == 4){
					this.vc.navigateTo({
						url:"/pages/protectionCaseReport/protectionCaseReport"
					},true)
				}
			},
		}
	};
</script>
<style>
	@import "./reportManage.css";
	text {
		text-align: center;
	}
</style>
